home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_aet_testcog.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  64 lines

  1. # Jones 3D Cog Script
  2. #
  3. # aet_TestCog.cog
  4. #
  5. # [TL]
  6. #
  7. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  8. # ========================================================================================
  9. symbols
  10.     
  11. message     startup
  12. #message        entered
  13.  
  14. thing        player                        local
  15.  
  16. thing        POR
  17. #thing        ghost
  18. #thing        door
  19.  
  20. #sector        localsec
  21. #sector        thingsec
  22. #sector        classsec
  23.  
  24. #sound        wave=aet_gemdoor_start.wav    local
  25.  
  26. end
  27.  
  28. # ========================================================================================
  29. code
  30.  
  31. startup:
  32.  
  33. player = GetLocalPlayerThing();
  34.  
  35. StartCutScene(0);
  36. Sleep(0.01);
  37. EndCutScene();
  38.  
  39. SetThingFlags(POR, 0x80000);
  40.  
  41. return;
  42.  
  43. # ........................................................................................
  44. //entered:
  45.  
  46. //if (GetSenderRef() == localsec)
  47. //    {
  48. //    PlaySoundLocal(wave, 1, 0, 0x0, 0);    
  49. //    }
  50. //if (GetSenderRef() == thingsec)
  51. //    {
  52. //    PlaySoundThing(wave, ghost, 1, 10, 10, 0x0);
  53. //    }
  54. //if (GetSenderRef() == classsec)
  55. //    {
  56. //    MoveToFrame(door, 1, 1.0);
  57. //    }
  58.  
  59. //return;
  60.  
  61. # ........................................................................................
  62. end
  63.  
  64.